package com.tledu.spring.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tledu.spring.dao.CraftMapper;
import com.tledu.spring.dao.RequirementMapper;
import com.tledu.spring.domain.Craft;
import com.tledu.spring.domain.Requirement;
import com.tledu.spring.service.IRequirementService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

@Service
@AllArgsConstructor
public class RequirementServiceImpl implements IRequirementService {
    private final RequirementMapper requirementMapper;
    private final CraftMapper craftMapper;
    @Override
    public List<Requirement> query(Requirement requirement) {
        return requirementMapper.query(requirement);
    }

    @Override
    public void insert(Requirement requirement) {
        int i = requirementMapper.insert(requirement);
    }

    @Override
    public void delete(Integer re_id) {
        requirementMapper.delete(re_id);
    }


    @Override
    public void update(Requirement requirement) {
        requirementMapper.update(requirement);
    }

    @Override
    public Requirement selectByRe_Id(Integer re_id) {
        return requirementMapper.selectByRe_Id(re_id);
    }


}
